package com.eshop.modules.product.vo;

import com.eshop.serializer.DoubleSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;

@ApiModel(value = "YxStoreProductRelationQueryVo对象", description = "商品点赞和收藏表查询参数")
public class StoreProductRelationQueryVo implements Serializable
{
    private static final long serialVersionUID = 1L;
    private Long id;
    @ApiModelProperty("用户ID")
    private Long uid;
    @ApiModelProperty("商品ID")
    private Long productId;
    @ApiModelProperty("类型(收藏(collect）、点赞(like))")
    private String type;
    @ApiModelProperty("某种类型的商品(普通商品、秒杀商品)")
    private String category;
    @ApiModelProperty("添加时间")
    private Date createTime;
    @ApiModelProperty("产品图片")
    private String image;
    @ApiModelProperty("是否显示")
    private Integer isShow;
    @ApiModelProperty("原价")
    @JsonSerialize(using = DoubleSerializer.class)
    private Double otPrice;
    @ApiModelProperty("父ID")
    private Integer pid;
    @ApiModelProperty("产品价格")
    @JsonSerialize(using = DoubleSerializer.class)
    private Double price;
    @ApiModelProperty("产品销量")
    private Integer sales;
    @ApiModelProperty("商品名称")
    private String storeName;
    @ApiModelProperty("是否开启积分兑换")
    private Integer isIntegral;
    @ApiModelProperty("积分")
    private Integer integral;
    
    public Long getId() {
        return this.id;
    }
    
    public Long getUid() {
        return this.uid;
    }
    
    public Long getProductId() {
        return this.productId;
    }
    
    public String getType() {
        return this.type;
    }
    
    public String getCategory() {
        return this.category;
    }
    
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public String getImage() {
        return this.image;
    }
    
    public Integer getIsShow() {
        return this.isShow;
    }
    
    public Double getOtPrice() {
        return this.otPrice;
    }
    
    public Integer getPid() {
        return this.pid;
    }
    
    public Double getPrice() {
        return this.price;
    }
    
    public Integer getSales() {
        return this.sales;
    }
    
    public String getStoreName() {
        return this.storeName;
    }
    
    public Integer getIsIntegral() {
        return this.isIntegral;
    }
    
    public Integer getIntegral() {
        return this.integral;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setUid(final Long uid) {
        this.uid = uid;
    }
    
    public void setProductId(final Long productId) {
        this.productId = productId;
    }
    
    public void setType(final String type) {
        this.type = type;
    }
    
    public void setCategory(final String category) {
        this.category = category;
    }
    
    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }
    
    public void setImage(final String image) {
        this.image = image;
    }
    
    public void setIsShow(final Integer isShow) {
        this.isShow = isShow;
    }
    
    public void setOtPrice(final Double otPrice) {
        this.otPrice = otPrice;
    }
    
    public void setPid(final Integer pid) {
        this.pid = pid;
    }
    
    public void setPrice(final Double price) {
        this.price = price;
    }
    
    public void setSales(final Integer sales) {
        this.sales = sales;
    }
    
    public void setStoreName(final String storeName) {
        this.storeName = storeName;
    }
    
    public void setIsIntegral(final Integer isIntegral) {
        this.isIntegral = isIntegral;
    }
    
    public void setIntegral(final Integer integral) {
        this.integral = integral;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreProductRelationQueryVo)) {
            return false;
        }
        final StoreProductRelationQueryVo other = (StoreProductRelationQueryVo)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$uid = this.getUid();
        final Object other$uid = other.getUid();
        Label_0102: {
            if (this$uid == null) {
                if (other$uid == null) {
                    break Label_0102;
                }
            }
            else if (this$uid.equals(other$uid)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$productId = this.getProductId();
        final Object other$productId = other.getProductId();
        Label_0139: {
            if (this$productId == null) {
                if (other$productId == null) {
                    break Label_0139;
                }
            }
            else if (this$productId.equals(other$productId)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$isShow = this.getIsShow();
        final Object other$isShow = other.getIsShow();
        Label_0176: {
            if (this$isShow == null) {
                if (other$isShow == null) {
                    break Label_0176;
                }
            }
            else if (this$isShow.equals(other$isShow)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$otPrice = this.getOtPrice();
        final Object other$otPrice = other.getOtPrice();
        Label_0213: {
            if (this$otPrice == null) {
                if (other$otPrice == null) {
                    break Label_0213;
                }
            }
            else if (this$otPrice.equals(other$otPrice)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$pid = this.getPid();
        final Object other$pid = other.getPid();
        Label_0250: {
            if (this$pid == null) {
                if (other$pid == null) {
                    break Label_0250;
                }
            }
            else if (this$pid.equals(other$pid)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$price = this.getPrice();
        final Object other$price = other.getPrice();
        Label_0287: {
            if (this$price == null) {
                if (other$price == null) {
                    break Label_0287;
                }
            }
            else if (this$price.equals(other$price)) {
                break Label_0287;
            }
            return false;
        }
        final Object this$sales = this.getSales();
        final Object other$sales = other.getSales();
        Label_0324: {
            if (this$sales == null) {
                if (other$sales == null) {
                    break Label_0324;
                }
            }
            else if (this$sales.equals(other$sales)) {
                break Label_0324;
            }
            return false;
        }
        final Object this$isIntegral = this.getIsIntegral();
        final Object other$isIntegral = other.getIsIntegral();
        Label_0361: {
            if (this$isIntegral == null) {
                if (other$isIntegral == null) {
                    break Label_0361;
                }
            }
            else if (this$isIntegral.equals(other$isIntegral)) {
                break Label_0361;
            }
            return false;
        }
        final Object this$integral = this.getIntegral();
        final Object other$integral = other.getIntegral();
        Label_0398: {
            if (this$integral == null) {
                if (other$integral == null) {
                    break Label_0398;
                }
            }
            else if (this$integral.equals(other$integral)) {
                break Label_0398;
            }
            return false;
        }
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        Label_0435: {
            if (this$type == null) {
                if (other$type == null) {
                    break Label_0435;
                }
            }
            else if (this$type.equals(other$type)) {
                break Label_0435;
            }
            return false;
        }
        final Object this$category = this.getCategory();
        final Object other$category = other.getCategory();
        Label_0472: {
            if (this$category == null) {
                if (other$category == null) {
                    break Label_0472;
                }
            }
            else if (this$category.equals(other$category)) {
                break Label_0472;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        Label_0509: {
            if (this$createTime == null) {
                if (other$createTime == null) {
                    break Label_0509;
                }
            }
            else if (this$createTime.equals(other$createTime)) {
                break Label_0509;
            }
            return false;
        }
        final Object this$image = this.getImage();
        final Object other$image = other.getImage();
        Label_0546: {
            if (this$image == null) {
                if (other$image == null) {
                    break Label_0546;
                }
            }
            else if (this$image.equals(other$image)) {
                break Label_0546;
            }
            return false;
        }
        final Object this$storeName = this.getStoreName();
        final Object other$storeName = other.getStoreName();
        if (this$storeName == null) {
            if (other$storeName == null) {
                return true;
            }
        }
        else if (this$storeName.equals(other$storeName)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreProductRelationQueryVo;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $uid = this.getUid();
        result = result * 59 + (($uid == null) ? 43 : $uid.hashCode());
        final Object $productId = this.getProductId();
        result = result * 59 + (($productId == null) ? 43 : $productId.hashCode());
        final Object $isShow = this.getIsShow();
        result = result * 59 + (($isShow == null) ? 43 : $isShow.hashCode());
        final Object $otPrice = this.getOtPrice();
        result = result * 59 + (($otPrice == null) ? 43 : $otPrice.hashCode());
        final Object $pid = this.getPid();
        result = result * 59 + (($pid == null) ? 43 : $pid.hashCode());
        final Object $price = this.getPrice();
        result = result * 59 + (($price == null) ? 43 : $price.hashCode());
        final Object $sales = this.getSales();
        result = result * 59 + (($sales == null) ? 43 : $sales.hashCode());
        final Object $isIntegral = this.getIsIntegral();
        result = result * 59 + (($isIntegral == null) ? 43 : $isIntegral.hashCode());
        final Object $integral = this.getIntegral();
        result = result * 59 + (($integral == null) ? 43 : $integral.hashCode());
        final Object $type = this.getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        final Object $category = this.getCategory();
        result = result * 59 + (($category == null) ? 43 : $category.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        final Object $image = this.getImage();
        result = result * 59 + (($image == null) ? 43 : $image.hashCode());
        final Object $storeName = this.getStoreName();
        result = result * 59 + (($storeName == null) ? 43 : $storeName.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "StoreProductRelationQueryVo(id=" + this.getId() + ", uid=" + this.getUid() + ", productId=" + this.getProductId() + ", type=" + this.getType() + ", category=" + this.getCategory() + ", createTime=" + this.getCreateTime() + ", image=" + this.getImage() + ", isShow=" + this.getIsShow() + ", otPrice=" + this.getOtPrice() + ", pid=" + this.getPid() + ", price=" + this.getPrice() + ", sales=" + this.getSales() + ", storeName=" + this.getStoreName() + ", isIntegral=" + this.getIsIntegral() + ", integral=" + this.getIntegral() + ")";
    }
}
